import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import app from '@/store/modules/app'
import user from './modules/user'

// 引入getters
import getters from './getters'

export default new Vuex.Store({

  getters,
  modules: {
    app,
    user
  }
})

// {
//   namespaced: true,
//   state,
//   getters,
//   mutations,
//   actions,
// }
